package com.grm.sys.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.grm.sys.entity.SysRole;
import com.grm.sys.service.mapper.SysRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 系统角色服务
 *
 * @author gaorimao
 * @date 2022/02/07
 */
@Service
public class SysRoleService extends ServiceImpl<SysRoleMapper, SysRole> {
    @Autowired
    private SysRoleMapper sysRoleMapper;

    public List<SysRole> querySysRolesByUserId(Long userId) {
        return sysRoleMapper.querySysRolesByUserId(userId);
    }
}
